Fix weird no room error
authorjustbur <justin@burkett.cc>
Mon, 13 Jul 2015 18:59:07 +0000 (14:59 -0400)
committerjustbur <justin@burkett.cc>
Mon, 13 Jul 2015 18:59:07 +0000 (14:59 -0400)
which-key.el

index 92d82f044d040208dae41832432c1e6a36f46fd8..3ef4615dc19020534b049d0a619f24316905933f 100644 (file)
@@ -818,7 +818,7 @@ value of `which-key-show-prefix'.  SEL-WIN-WIDTH is passed to
           pages (reverse pages)
           first-page (car pages)
           first-page-str (concat prefix-string (car first-page)))
-    (cond (no-room
+    (cond ((<= (car keys-per-page) 0) ; check first page
            (message "%s-  which-key can't show keys: Settings and/or frame size are too restrictive." prefix-keys)
            (cons 0 0))
           (max-pages-reached